import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

//根据疾病ID删除疾病信息
export const DeleteJiBingDel = params => {
  return http.delete("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/DeleteJiBingDel", params);
};

//疾病通用名删除
export const DeleteTongYongMingDel = params => {
  return http.delete("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/DeleteTongYongMingDel", params);
};

// 疾病包含关键字删除
export const DelJiBingBaoHanGuanJianZiDelete = params => {
  return http.delete("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/DelJiBingBaoHanGuanJianZiDelete", params);
};

// 疾病对应通用名删除
export const DelJiBingDuiYingTongYongMingDelete = params => {
  return http.delete("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/DelJiBingDuiYingTongYongMingDelete", params);
};

// 根据疾病名称查询
export const GetJiBingSel = params => {
  return http.get<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/GetJiBingSel", params);
};

// 根据通用名ID查询通用名疾病
export const GetTongYongMingJiBingSel = params => {
  return http.get<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/GetTongYongMingJiBingSel", params);
};

// 根据通用名查询疾病通用名
export const GetTongYongMingSel = params => {
  return http.get<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/GetTongYongMingSel", params);
};

// 诊断结果维护添加
export const PostJiBingAdd = params => {
  return http.post<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PostJiBingAdd", params);
};

// 疾病包含关键字添加
export const PostJiBingBaoHanGuanJianZiAdd = params => {
  return http.post<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PostJiBingBaoHanGuanJianZiAdd", params);
};

// 增加疾病对应通用名
export const PostJiBingDuiYingTongYongMing = params => {
  return http.post<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PostJiBingDuiYingTongYongMing", params);
};

// 疾病通用名添加
export const PostTongYongMingAdd = params => {
  return http.post<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PostTongYongMingAdd", params);
};

// 疾病包含关键字修改
export const PutJiBingBaoHanGuanJianZiUpdate = params => {
  return http.put<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PutJiBingBaoHanGuanJianZiUpdate", params);
};

// 诊断结果维护修改
export const PutJiBingUpdate = params => {
  return http.put<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PutJiBingUpdate", params);
};

// 疾病通用名修改
export const PutTongYongMingUpdate = params => {
  return http.put<any>("/api/ZhenDuanJieGuoWeiHu/" + PORT1 + "/PutTongYongMingUpdate", params);
};
